package mao.algorithm.redbook.demo29_9;

public class WeightedEdge extends Edge{
	int weight;
	public WeightedEdge(int u, int v,int weight) {
		super(u, v);
		this.weight = weight;
	}
	public int getWeight() {
		return weight;
	}
	public void setWeight(int weight) {
		this.weight = weight;
	}
	@Override
	public String toString() {
		return "WeightedEdge [weight=" + weight + ", u=" + u + ", v=" + v + "]";
	}
	
	
	

}
